package com.sm.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.sm.domain.Score;
import com.sm.mapper.ScoreMapper;
import com.sm.service.IScoreService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author admin
 * @since 2022-06-07
 */
@Service
public class ScoreServiceImpl extends ServiceImpl<ScoreMapper, Score> implements IScoreService {

    @Autowired
    private ScoreMapper mapper;
    @Override
    public List<Score> listAll(QueryWrapper<Score> qw){
        return mapper.listAll(qw);
    }

    @Override
    public List<Map<String, Object>> listTotal(QueryWrapper<Score> qw){
        return mapper.listTotal(qw);
    }
}
